#ifndef _SCORE_H_
#define _SCORE_H_

#include "Object.h"

class Score : public Object
{
	float _xOld;
	float _yOld;

	float _vx;
	float _vy;

	float _accelY;

public:
	int score;

	Score(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y);
	~Score();

	void Render(RECT camera);
	void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);

	OBJECT_TYPE GetTypeObject();
	void ResetRect();

	void Update(int Score);
	void DrawNumber(Sprite* sprite,int number,int x,int y);

	void ChangeState(int state);
};

#endif